home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / utility / utilgraf / newicndt.lha / NewIconDT / Sources / debug.h < prev    next >
C/C++ Source or Header  |  1996-10-24  |  658b  |  40 lines

  1. #ifndef DEBUG_H
  2. #define DEBUG_H
  3.  
  4. /* debug.h
  5. **
  6. ** $VER: debug.h 1.0 (22.10.96)
  7. **
  8. ** Original by
  9. **   Stefan Ruppert , Windthorststraße 5 , 65439 Flörsheim , GERMANY
  10. **
  11. */
  12.  
  13. #ifdef DEBUG
  14.  
  15. extern void kprintf(char *fmt,...);
  16. #define bprintf        kprintf
  17.  
  18. #define D(x)    x
  19. #define DPUT(x)    bprintf("  "); bprintf x
  20. #define DB(x)   { bprintf(__FILE__ "(%4ld):" __FUNC__ "() :\n  ",__LINE__); \
  21.                   bprintf x; \
  22.                 }
  23.  
  24. #define ENTERING    bprintf("Entering " __FUNC__ "()\n")
  25. #define LEAVING        bprintf("Leaving " __FUNC__ "()\n")
  26.  
  27.  
  28. #else
  29.  
  30. #define D(x)
  31. #define DPUT(x)
  32. #define DB(x)
  33. #define ENTERING
  34. #define LEAVING
  35.  
  36. #endif
  37.  
  38. #endif   /* DEBUG_H */
  39.  
  40.